//
//  WYBrandCell.m
//  Boss
//
//  Created by admin on 2018/6/22.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYBrandCell.h"

@implementation WYBrandCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    UITapGestureRecognizer *ges1 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickImageView1:)];
    
    [self.brandImage_1 addGestureRecognizer:ges1];
    
    UITapGestureRecognizer *ges2 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickImageView2:)];
    
    [self.brandImage_2 addGestureRecognizer:ges2];
    
    UITapGestureRecognizer *ges3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickImageView3:)];
    
    [self.brandImage_3 addGestureRecognizer:ges3];
    
    
    
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)clickImageView1:(id)sender {
    if ([self.delegate respondsToSelector:@selector(clickImageViewWithTag:)]) {
        [self.delegate clickImageViewWithTag:1];
    }
    
}

- (void)clickImageView2:(id)sender {
    [self.delegate clickImageViewWithTag:2];
}
- (void)clickImageView3:(id)sender {
    [self.delegate clickImageViewWithTag:3];
}






@end
